package com.zhanghu.backendZray.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("user")
public class User extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 手机号
     */
    private String phone;

    private String password;

    /**
     * 微信登录用户openId
     */
    private String wxOpenId;

    /**
     * 微信登录用户nickname
     */
    private String wxNickName;

    /**
     * 微信登录用户accessToken
     */
    private String wxAccessToken;

    /**
     * 微信登录用户refreshToken
     */
    private String wxRefreshToken;

    /**
     * 微信登录用户expireIn，过期时间，默认2h
     */
    private Integer wxExpireIn;

    /**
     * 微信登录用户头像地址
     */
    private String wxAvatar;
    /**
     * 常驻城市
     */
    private String city;

    private static final long serialVersionUID = 1L;
}